  
<template>
	<view class="table-two">
		<view class="table-thead">
			<view class="table-thead__tr">
				<view class="table-thead__th" :style="{width: '20%'}">品种</view>
				<view class="table-thead__th" :style="{width: '20%'}">开/平仓</view>
				<view class="table-thead__th" :style="{width: '20%'}">
					<view class="trend-color">跌</view>/<view class="side-color">涨</view>
				</view>
				<view class="table-thead__th" :style="{width: '20%'}">价格</view>
				<view class="table-thead__th" :style="{width: '20%'}">数量</view>
			</view>
		</view>
		<view class="table-tbody">
			<view class="table-tbody__tr">
				<view class="table-tbody__th" :style="{width: '20%'}">螺纹1908</view>
				<view class="table-tbody__th" :style="{width: '20%'}">平仓</view>
				<view class="table-tbody__th trend-color" :style="{width: '20%'}">跌</view>
				<view class="table-tbody__th" :style="{width: '20%'}">18元</view>
				<view class="table-tbody__th" :style="{width: '20%'}">500</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		methods: {
		}
	}
</script>

<style lang="scss">
	.table-two{
		.table-thead{
			width: 100%;
			.table-thead__tr{
				display: flex;
				font-size: 28rpx;
			}
			.table-thead__th{
				// flex: 1;
				height: 60rpx;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}
		.table-tbody{
			width: 100%;
			.table-tbody__tr{
				display: flex;
				font-size: 28rpx;
			}
			.table-tbody__th{
				width: 20%;
				height: 60rpx;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				text-align: center;
				vertical-align: middle;
			}
		}
	}
</style>